package com.dh.netty;

public class NettyMessageVO {
	private short commandCode;
	private byte[] data;

	public short getCommandCode() {
		return commandCode;
	}

	public void setCommandCode(short commandCode) {
		this.commandCode = commandCode;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public int getDataLength() {
		if (data == null)
			return 0;
		return data.length;
	}

	public String toString() {
		return "commandCode=" + commandCode + "," + new String(data);
	}

}
